from django.db import models
import datetime

# Create your models here.
class VisitorRecord(models.Model):
    day = models.DateField(verbose_name='date', default=datetime.datetime.now)
    ip = models.CharField(verbose_name='IP address', max_length=30)
    page = models.CharField(verbose_name='access page', max_length=100)
    class Meta:
        verbose_name = 'vistor"/s imofrmation'
        verbose_name_plural = verbose_name
    def __str__(self):
        return self.ip


